package com.one;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Test;

/**
 * Created by peng on 2017/5/1.
 */
public class Phtest {

    private static Logger logger = LogManager.getLogger(Phtest.class.getName());
    private static Logger logger2 = LogManager.getLogger("phlog");

    public static void main(String[] args) {
        Object o = new Object();

    }

    @Test
    public void testLog(){

        logger.info("今天天气不错");
        logger.error("今天天气不错");
        logger.debug("今天天气不错");
        logger2.info("ph今天学习啦");
        logger2.error("今天fighting");


    }
}
